<!--The content below is only a placeholder and can be replaced.-->
<div>
  <span class="button" (click)="show('lifeCycle')">生命周期钩子</span>
  <br>
</div>
<div *ngIf="showContent === 'lifeCycle'" class="content">
  <life-cycle></life-cycle>
</div>

